const http = require("http");

http.get("http://localhost:3000/?username=zhangsan&age=30", (res) => {
    let str = "";
    res.on("data", (chunk) => {
        str += chunk;
    })
    res.on("end", () => {
        console.log(str);
    })
})